﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;

namespace Himp.Platform.Dc
{
    /// <summary>
    /// 供应商字典
    /// </summary>
    [Table("SPLER_DICT")]
    public class SplerDict : Entity<Guid>, IMultiTenant
    {
        /// <summary>
        /// 供应商编码
        /// </summary>
        [Column("SPLER_CODG")]
        public string SplerCodg { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        [Column("SPLER_NAME")]
        public string SplerName { get; set; }

        ///// <summary>
        ///// 供应商类别
        ///// </summary>
        //[Column("SPLER_TYPE")]
        //public EnumSplerType SplerType { get; set; }

        /// <summary>
        /// 供应商许可证号
        /// </summary>
        [Column("SPLER_PMTNO")]
        public string? SplerPmtno { get; set; }

        /// <summary>
        /// 拼音助记码
        /// </summary>
        [Column("PINYIN_MEMO")]
        public string? PinyinMemo { get; set; }

        /// <summary>
        /// 五笔助记码
        /// </summary>
        [Column("WUBI_MEMO")]
        public string? WubiMemo { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        [Column("CONER")] 
        public string? Coner { get; set; }

        /// <summary>
        /// 电子邮箱
        /// </summary>
        [Column("EMAIL")]
        public string? Email { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        [Column("TEL")]
        public string? Tel { get; set; }

        /// <summary>
        /// 开户银行
        /// </summary>
        [Column("OP_BANK_TYPE_CODE")]
        public string? OpBankTypeCode { get; set; }

        /// <summary>
        /// 开户银行
        /// </summary>
        [Column("OP_BANK_TYPE_NAME")]
        public string? OpBankTypeName { get; set; }

        /// <summary>
        /// 法人名称
        /// </summary>
        [Column("LPR_NAME")]
        public string? LprName { get; set; }

        /// <summary>
        /// 有效标识
        /// </summary>
        [Column("VALI_FLAG")]
        public bool ValiFlag { get; set; }

        /// <summary>
        /// 税号
        /// </summary>
        [Column("TIN")]
        public string? Tin { get; set; }

        /// <summary>
        /// 地区
        /// </summary>
        [Column("REGN")]
        public string? Regn { get; set; }

        /// <summary>
        /// 审核人编码
        /// </summary>
        [Column("CHKER_CODG")]
        public string? ChkerCodg { get; set; }

        /// <summary>
        /// 审核人名称
        /// </summary>
        [Column("CHKER_NAME")]
        public string? ChkerName { get; set; }

        /// <summary>
        /// 审核时间
        /// </summary>
        [Column("CHK_TIME")]
        public DateTime? ChkTime { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? TenantId { get; set; }

        public SplerDict()
        { 
            
        }

        public SplerDict(string splerCodg, string splerName)
        {
            SplerCodg = splerCodg;
            SplerName = splerName;
        }
    }
}
